package com.hdax.service.Impl;

import com.hdax.entity.Plan;
import com.hdax.mappers.PlanMapper;
import com.hdax.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计划服务impl
 *
 * @author Aizen
 * @date 2022/06/04
 */
@Service
public class PlanServiceImpl implements PlanService {

    @Autowired
    private PlanMapper planMapper;

    @Override
    public List<Plan> findAll(int offset, int limit, Plan plan) {
        return planMapper.findAll(offset,limit,plan);
    }

    @Override
    public int count() {
        return planMapper.count();
    }

    @Override
    public  List<Plan> finByid(int empid) {
        return planMapper.finByid(empid);
    }

    @Override
    public int updateBystate(Plan plan) {
        return planMapper.updateBystate(plan);
    }

    @Override
    public int insertAll(Plan plan) {
        return planMapper.insertAll(plan);
    }

    @Override
    public List<Plan> CountDate(Plan plan) {
        return planMapper.CountDate(plan);
    }

    @Override
    public int CountPlan(Plan plan) {
        return planMapper.CountPlan(plan);
    }

    @Override
    public Plan selectByid(int id) {
        return planMapper.selectByid(id);
    }
}
